package org.cmcc.pcap.voltePcapParse.pcap;


/**
 * SCTP 包头：由4个域组成，每个域各占用2个字节
 * @author starfish
 *
 */
public class SCTPHeader {
	
	private short srcPort;			// 源端口
	private short dstPort;			// 目的端口
	private String verification;			// 数据包长
	private String checkSum;		// 校验和
	private SCTPDataChunk sctpDATAchunk;
	
	public short getSrcPort() {
		return srcPort;
	}
	public void setSrcPort(short srcPort) {
		this.srcPort = srcPort;
	}
	public short getDstPort() {
		return dstPort;
	}
	public void setDstPort(short dstPort) {
		this.dstPort = dstPort;
	}
	
	
	public String getVerification() {
		return verification;
	}
	public void setVerification(String verification) {
		this.verification = verification;
	}
	public String getCheckSum() {
		return checkSum;
	}
	public void setCheckSum(String checkSum) {
		this.checkSum = checkSum;
	}
	public SCTPDataChunk getSctpDATAchunk() {
		return sctpDATAchunk;
	}
	public void setSctpDATAchunk(SCTPDataChunk sctpDATAchunk) {
		this.sctpDATAchunk = sctpDATAchunk;
	}
	public SCTPHeader() {}

	@Override
	public String toString() {
		return "<b>Stream Control Transmission Protocol,Src Port:</b>" + srcPort+",<b>Dst Port:</b>"+ dstPort
		+ "<br>&nbsp;&nbsp;<b>Source Port:</b>" + srcPort
		+ "<br>&nbsp;&nbsp;<b>Destnation Port:</b>" + dstPort
		+ "<br>&nbsp;&nbsp;<b>verification tag:</b>" + verification
		+ "<br>&nbsp;&nbsp;<b>Checksum:</b>" + checkSum
		+ "<br>&nbsp;&nbsp;" + sctpDATAchunk.toString();
	}
}
